common/env_nand.c: calculate crc only when readenv was OK
authorPhil Sutter <[email protected]>
Thu, 21 Feb 2013 17:21:56 +0000 (18:21 +0100)
committerScott Wood <[email protected]>
Sat, 23 Feb 2013 01:59:53 +0000 (19:59 -0600)
commita1eac57a2001ecf86a46f520cd85ef8e9c8b3687
tree1064af3d3d74305468904b6a1a00969c941fe8f3
parentb76a147b722565bde046f707a5cc92df8ea29738
common/env_nand.c: calculate crc only when readenv was OK

Calculating the checksum of incompletely read data is useless.

Signed-off-by: Phil Sutter <[email protected]>
[[email protected]: minor formatting fix]
Signed-off-by: Scott Wood <[email protected]>
common/env_nand.c